<template>
    <h2>社群牛人</h2>
    <div class="community-expert">
        <div class="community-expert-item" v-for="item in communityExpertList" :key="item.title">
            <img :src="item.avatar" alt="" />
            <h4>{{ item.name }}</h4>
            <p>{{ item.title }}</p>
            <p>{{ item.desc }}</p>
        </div>
    </div>
</template>
<script setup lang="ts">
interface CommunityExpertItem {
    avatar: string;
    name: string;
    title: string;
    desc: string;
}
const communityExpertList: CommunityExpertItem[] = [
    {
        avatar: "/public/icon/avatar-1.png",
        name: "老强",
        title: "社群创始人",
        desc: "专注于机器学习算法研究，发表多篇顶级论文",
    },
    {
        avatar: "/public/icon/avatar-2.png",
        name: "xxx",
        title: "xxxx专家",
        desc: "10年开发经验，擅长系统架构设计和性能优化",
    },
    {
        avatar: "/public/icon/avatar-3.png",
        name: "xxx",
        title: "xxxx专家",
        desc: "10年开发经验，擅长系统架构设计和性能优化",
    },
];
</script>
<style lang="scss" scoped>
h2{
    font-family: Inter;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: 0%;
    text-align: center;
    color: #222222;
    margin-bottom: 2rem;
}
.community-expert {
    display: flex;
    justify-content: center;
    height: 10.375rem;
    padding-right: 1rem;
    padding-left: 1rem;
    gap: 1.5rem;
    margin-bottom: 5rem;
    .community-expert-item {
        width: 21.5rem;
        height: 11.875rem;
        border-radius: 1.2rem;
        border-width: 1px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        border: 1px solid #F3F4F6;
        box-shadow: 0px 0.125rem 0.5rem 0px rgba(15, 23, 42, 0.04);

        text-align: center;

        img {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            margin-bottom: 0.75rem;
        }

        h4 {
            font-family: Inter;
            font-weight: 700;
            font-size: 1.125rem;
            line-height: 1.75rem;
            letter-spacing: 0%;
            text-align: center;
            color: rgba(24, 24, 27, 1);
            margin-bottom: 0.25rem;
        }

        p:nth-child(3) {
            font-family: Inter;
            font-weight: 400;
            font-size: 0.875rem;
            line-height: 1.25rem;
            color: rgba(107, 114, 128, 1);
            margin-bottom: 0.75rem;
        }
        p:nth-child(4) {
            font-family: Inter;
            font-weight: 400;
            font-size: 0.875rem;
            line-height: 1.25rem;
            color: rgba(75, 85, 99, 1);
        }
    }
}
</style>
